export const MarkdownReander = () => import('./notes/markdownRender.md')
export const VueUpData = () => import('./notes/vueUpData.md')
export const VueSet = () => import('./notes/vueSet.md')
export const VModel = () => import('./notes/v-model.md')
export const VFliters = () => import('./notes/filters.md')
export const VwatchComputer = () => import('./notes/watchComputer.md')
export const VBuiltInCommands = () => import('./notes/BuiltInCommands.md')
export const VlifeCycle = () => import('./notes/lifeCycle.md')
export const VregularExpression = () => import('./notes/regularExpression.md')
export const VvautoImport = () => import('./notes/vautoImport.md')

// 配置文件路劲传递的参数
const mdfileContext = require.context('./notes/', true, /\.md$/) 
const exeStr = /\.\/([.\w\W-]+?)\.md/i
const fileMdObj = {}

mdfileContext.keys().forEach(function(key) {
    let name = key.match(exeStr)[1].replace(/-/,"")
    let compName = 'DM'+name
    fileMdObj[compName] = compName
})

export default fileMdObj